package com.xianyun.site.support.common.exception;

import com.alibaba.cola.exception.BaseException;

/**
 * @author mac_zyj
 */
public class SupportException extends BaseException {
        private static final long serialVersionUID = 1L;

    public SupportException(String errMessage){
            super(errMessage);
            this.setErrCode(SupportErrorCode.BIZ_ERROR.getErrCode());
        }

    public SupportException(SupportErrorCode errCode, String errMessage){
            super(errMessage);
            this.setErrCode(errCode.getErrCode());
        }

    public SupportException(String errMessage, Throwable e) {
            super(errMessage, e);
            this.setErrCode(SupportErrorCode.BIZ_ERROR.getErrCode());
        }
}
